#include"namedPipe.hpp"
int main()
{
    NamedPipe pipe(Path,creater);
    while(1)
    {
        string messages;
        int n=pipe.Read(&messages);
        if(n==0)
        {
            cout << "client quit!" << endl;
            break;
        }
        cout << messages << endl;
    }
    return 0;
}